package com.cjm.one.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjm.one.model.goods.entity.GoodsCart;
import com.cjm.one.model.goods.vo.GoodsSkuCartVo;

import java.util.List;

public interface GoodsCartService extends IService<GoodsCart> {

    Page<GoodsSkuCartVo> getCartList(Integer current, Integer size, Long id);

    Long addCart(GoodsCart cart);

    Boolean updateCart(GoodsCart cart);

    Boolean deleteCart(Long id, Long customerId);

    Boolean deleteCartAll(Long customerId);

    Boolean deleteCartBatch(Long[] ids, Long customerId);

    List<GoodsCart> selectByCustomerId(Long id);

    Page<GoodsSkuCartVo> selectByIds(Long[] ids, Long customId);
}